package com.yy.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yy.entity.Report;
import com.yy.service.ReportService;
import com.yy.mapper.ReportMapper;
import org.springframework.stereotype.Service;

/**
* @author 雨
* @description 针对表【report】的数据库操作Service实现
* @createDate 2024-06-07 11:42:25
*/
@Service
public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report>
    implements ReportService{

    @Override
    public boolean updateState(int id) {
        return this.update(new LambdaUpdateWrapper<Report>()
                .eq(Report::getReportid, id)
                .set(Report::getState, 3)
        );
    }
}




